package com.yex.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.yex.common.utils.PageUtils;
import com.yex.dao.IntegralLogDao;
import com.yex.entity.IntegralLogEntity;
import com.yex.service.IntegralLogService;
import com.yex.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("integralLogService")
public class IntegralLogServiceImpl extends ServiceImpl<IntegralLogDao, IntegralLogEntity> implements IntegralLogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<IntegralLogEntity> page = this.selectPage(
                new Query<IntegralLogEntity>(params).getPage(),
                new EntityWrapper<IntegralLogEntity>()
        );

        return new PageUtils(page);
    }

}
